package com.xiaotu.es.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhangxiao
 * @create 2022-04-28 10:34
 */
@Data
@Document(indexName = "sw_list", shards = 3, replicas = 2)
public class Sw13List {

    /**
     * 艺人ID
     */
    @Id
    @Field(type = FieldType.Integer)
    private Integer starId;

    /**
     * 是否认证
     */
    @Field(type = FieldType.Integer)
    private Integer isAuthSuccess;

    /**
     * 艺人名称
     */
    @Field(type = FieldType.Text, analyzer = "standard", searchAnalyzer = "ik_smart")
    private String starName;

    /**
     * 艺人头像
     */
    @Field(type = FieldType.Text)
    private String imagesUrl;

    /**
     * 作品总数
     */
    @Field(type = FieldType.Integer)
    private Integer workTotal;

    /**
     * 代表作
     */
    @Field(type = FieldType.Text)
    private String works;

    /**
     * 相关作品
     */
    @Field(type = FieldType.Text, analyzer = "standard", searchAnalyzer = "ik_smart")
    private String relatedWorks;

    /**
     * 艺人性别
     */
    @Field(type = FieldType.Keyword)
    private String sex;

    /**
     * 艺人别名 标准分词
     */
    @Field(type = FieldType.Text, analyzer = "standard", searchAnalyzer = "ik_smart")
    private String starNameAlias;

    /**
     * 相关作品别名 标准分词
     */
    @Field(type = FieldType.Text, analyzer = "standard", searchAnalyzer = "ik_smart")
    private String relatedWorksAlias;

    /**
     * 相关作品题材 标准分词
     */
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String relatedWorksLabel;

    /**
     * 小土指数 用于排序
     */
    @Field(type = FieldType.Double)
    private Double xtIndex;

}
